Update and upgrade packages

1

To update the packages only:

sudo apt update -y

# After this type your system password, and it will update the packages.

2

To upgrade the packages only:

sudo apt upgrade -y

# After this type your system password, and it will upgrade the packages.

3

To update and upgrade the packages:

sudo apt update -y && sudo apt upgrade -y

# After this type your system password, and it will update and upgrade the packages.